package com.cloudweb.oa.api;

import com.cloudweb.oa.entity.Department;

public interface ISyncUtil {
    boolean syncOrg(Department department, String opType, String opUser);

    boolean syncUser(String userName, String deptCode, String opType, String opUser);

    boolean syncRole(String roleCode, String roleName, String isDeptManager, double order, String unitCode, String opType, String opUser);

    boolean syncRoleUser(String roleCode, String userName, double order, String opType, String opUser);

    boolean syncRolePrivilege(String roleCode, String privilegeCode, String opType, String opUser);

    boolean syncPrivilege(String privilegeCode, String privilegeName, int layer, int order, String opType, String opUser);

    boolean delAll();

    boolean isUsed();
}


